﻿using GeometRi;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SolidWorksStudy.Models
{
    public class SlotHoleModel
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="slotPoint1">槽口圆心1</param>
        /// <param name="slotPoint2">槽口圆心2</param>
        /// <param name="radius">槽口半径</param>
        public SlotHoleModel(Point3d slotPoint1, Point3d slotPoint2, double radius)
        {
            this.startPoint = new Point3d();
            this.endPoint = new Point3d();

            startPoint.X = slotPoint1.X;
            startPoint.Y = slotPoint1.Y;
            startPoint.Z = slotPoint1.Z;

            endPoint.X = slotPoint2.X;
            endPoint.Y = slotPoint2.Y;
            endPoint.Z = slotPoint2.Z;

            Radius = radius;
        }

        /// <summary>
        /// 槽孔圆心1
        /// </summary>
        public Point3d startPoint { get; set; }
        /// <summary>
        /// 槽孔圆心2
        /// </summary>
        public Point3d endPoint { get; set; }

        /// <summary>
        /// 槽口半径
        /// </summary>
        public double Radius { get; set; }

    }
}
